import request from '@/utils/request';

// 查询报警列表
export function getAlarmList(query) {
  return request({
    url: `/alarm/list?pageNum=${query.pageNum}&pageSize=${query.pageSize}`,
    method: 'post',
    data: query,
  });
}

// 报警已读
export function alarmRead(query) {
  return request({
    url: '/alarm',
    method: 'put',
    data: query,
  });
}
